package com.nstar.base.effects
{
   import mx.effects.TweenEffect;
   import mx.effects.EffectInstance;
   import mx.effects.IEffectInstance;

	/**
	 * 将表格某行背景色高亮的特效
	 * 
	 * @author 李嘉陵
	 * @since 2007-05-28
	 */
	public class HighLightColumn extends TweenEffect
	{
		public static var BEGIN:String = "begin";
		public static var END:String = "end";
		
		public var beginColor:uint = 0xfff7a0;
		public var endColor:uint = 0xcccccc;
		
		public var index:int;
		public var type:String;
		
		// Define constructor with optional argument.
       public function HighLightColumn(targetObj:* = null) {
           super(targetObj);
           instanceClass= HighLightColumnInstance;            
       }

       // Override getAffectedProperties() method to return "rotation".
       override public function getAffectedProperties():Array {
           return ["highLight"];
       }
    
       // Override initInstance() method.
       override protected function initInstance(inst:IEffectInstance):void {
           super.initInstance(inst);
           HighLightColumnInstance(inst).beginColor = beginColor;
           HighLightColumnInstance(inst).endColor = endColor;
           HighLightColumnInstance(inst).type = type;
           HighLightColumnInstance(inst).index = index;
       } 

	}
}